package sf.database.mapper.annotation;

import sf.database.support.DMLType;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 执行对应方法中的sql模板文件.
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ExecuteProvider {
    Class<?> type();

    String method();

    /**
     * 语句类型,默认为查询
     * @return
     */
    DMLType dmlType() default DMLType.SELECT;
}
